export default({ $axios, redirect }) => {
  const router = useRouter()

  // $axios.default.baseURL = import.meta.env === ''
  $axios.interceptors.request.use(config=> {
    return config
  },error=> {
    Promise.reject(error)
  })

  $axios.interceptors.response.use(response => {
    console.log('response', response)
    return response;
  }, error => {
    return Promise.reject(error);
  })

}